package com.pengtu.gsj.dao.yh;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.pengtu.gsj.dao.hibernate.HibernateDao;
import com.pengtu.gsj.entity.yh.MainBulletin;

@Repository
public class MainBulletinDao extends HibernateDao<MainBulletin, String>{

	public List<MainBulletin> getMainBulletinsByManageOrg() {
		String hql = "select new com.pengtu.gsj.entity.yh.MainBulletin(t.manageOrg) from MainBulletin t where t.delFlag='0' group by t.manageOrg order by t.manageOrg desc";
		return find(hql);
	}
}
